package my.test.visitor.source;

/**
 * @Author 许玉康
 * @Date 2019/10/8 11:17
 */
public class Visitor implements IVisitor {

    @Override
    public void visit(ConcreteElement1 concreteElement1) {
        concreteElement1.doSomething();
    }

    @Override
    public void visit(ConcreteElement2 concreteElement2) {
        concreteElement2.doSomething();
    }
}
